package org.nstack.network.service.virtualrouter.vip;

import org.nstack.network.service.vip.VipFactory;
import org.nstack.network.service.vip.VipVO;
import org.nstack.network.service.vip.VipBaseBackend;
import org.nstack.network.service.virtualrouter.VirtualRouterConstant;


public class VirtualRouterVipFactory implements VipFactory {
    @Override
    public String getNetworkServiceProviderType() {
        return VirtualRouterConstant.VIRTUAL_ROUTER_PROVIDER_TYPE;
    }

    @Override
    public VipBaseBackend getVip(VipVO self) {
        return new VirtualRouterVipBaseBackend(self);
    }
}
